package icu.study.common.security.constant;

/**
 * @program: spring security
 * @description:
 * @author: 1246263205@qq.com
 * @create: 2020-10-11 19:22
 */
public class SystemConstant {


    /**
     * 成功数据请求返回码
     */
    //成功(默认success)
    public static final long RESULT_CODE_SUCCESS = 200;
    //成功(msg)
    public static final long RESULT_CODE_SUCCESS_MSG = 201;
    //成功(默认success 自定义data)
    public static final long RESULT_CODE_SUCCESS_DATA = 202;
    //成功(自定义msg data)
    public static final long RESULT_CODE_SUCCESS_MSG_DATA = 203;
    /**
     * 失败数据请求返回码
     */
    //请求抛出异常
    public static final long RESULT_CODE_EXCEPTION = 400;
    //未登陆状态
    public static final long RESULT_CODE_NOT_LOGIN = 401;
    //登陆过期
    public static final long RESULT_CODE_LOGIN_OVERDUE = 402;
    //没有找到该用户
    public static final long RESULT_CODE_NOT_FOUND = 403;
    //无操作权限
    public static final long RESULT_CODE_NOT_AUTH = 404;
    //查询结果为空
    public static final long RESULT_CODE_NOT_EXIST = 405;
    //无VIP
    public static final long RESULT_CODE_NO_VIP = 406;
    //失败
    public static final long RESULT_CODE_NO = 406;

}